package com.example.whm.model;





import java.io.Serializable;
import java.util.Date;

public class EntityBuy   implements Serializable{
	
	private static final long serialVersionUID = 1523277164157276472L;
 
	String id;
	String collname;
	Entity entity;
	int num;
	int sum_price;
	//int like_num;
	String createtime=new Date().toLocaleString();
	
	
	
	
	
	
	

	public Entity getEntity() {
		return entity;
	}
	public void setEntity(Entity entity) {
		this.entity = entity;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCollname() {
		return collname;
	}
	public void setCollname(String collname) {
		this.collname = collname;
	}

	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getSum_price() {
		return sum_price;
	}
	public void setSum_price(int sum_price) {
		this.sum_price = sum_price;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public EntityBuy( String collname, Entity entity, int num,
			int sum_price) {
		super();
		//this.id = id;
		this.collname = collname;
		this.entity = entity;
		this.num = num;
		this.sum_price = sum_price;
		
	}
	public EntityBuy() {
		super();
		// TODO Auto-generated constructor stub
	}

	
	
	
	
}
